package com.nuc.impl2;

/**
 * Time    : 2023/3/28 21:36
 * Author  : 王摇摆
 * FileName: MagicWeapon.java
 * Software: IntelliJ IDEA 2020.2.2
 * Blog    ：https://blog.csdn.net/weixin_44943389?type=blog
 */

public class MagicWeapon implements IWeapon {
    @Override
    public String getName() {
        return "魔剑";
    }

    @Override
    public void attackMonster(Monster monster) {
        monster.handle(this.getName(), 100);
    }
}
